package cn.edu.nju.freshdelivery.model;

import java.sql.Time;
import java.util.HashSet;
import java.util.Set;

/**
 * Seller entity. @author MyEclipse Persistence Tools
 */

public class Seller implements java.io.Serializable {

	// Fields

	private Integer id;
	private String username;
	private String password;
	private String name;
	private String address;
	private String location;
	private Integer phone;
	private Double leastCost;
	private Time startTime;
	private Time endTime;
	private Boolean valid;
	private Set dishs = new HashSet(0);
	private Set orders = new HashSet(0);

	// Constructors

	/** default constructor */
	public Seller() {
	}

	/** minimal constructor */
	public Seller(String username, String password, String name,
			String address, String location, Integer phone, Double leastCost,
			Time startTime, Time endTime, Boolean valid) {
		this.username = username;
		this.password = password;
		this.name = name;
		this.address = address;
		this.location = location;
		this.phone = phone;
		this.leastCost = leastCost;
		this.startTime = startTime;
		this.endTime = endTime;
		this.valid = valid;
	}

	/** full constructor */
	public Seller(String username, String password, String name,
			String address, String location, Integer phone, Double leastCost,
			Time startTime, Time endTime, Boolean valid, Set dishs, Set orders) {
		this.username = username;
		this.password = password;
		this.name = name;
		this.address = address;
		this.location = location;
		this.phone = phone;
		this.leastCost = leastCost;
		this.startTime = startTime;
		this.endTime = endTime;
		this.valid = valid;
		this.dishs = dishs;
		this.orders = orders;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLocation() {
		return this.location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Integer getPhone() {
		return this.phone;
	}

	public void setPhone(Integer phone) {
		this.phone = phone;
	}

	public Double getLeastCost() {
		return this.leastCost;
	}

	public void setLeastCost(Double leastCost) {
		this.leastCost = leastCost;
	}

	public Time getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Time startTime) {
		this.startTime = startTime;
	}

	public Time getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Time endTime) {
		this.endTime = endTime;
	}

	public Boolean getValid() {
		return this.valid;
	}

	public void setValid(Boolean valid) {
		this.valid = valid;
	}

	public Set getDishs() {
		return this.dishs;
	}

	public void setDishs(Set dishs) {
		this.dishs = dishs;
	}

	public Set getOrders() {
		return this.orders;
	}

	public void setOrders(Set orders) {
		this.orders = orders;
	}

}